#ifndef __DX_H__
#define __DX_H__

#include <Windows.h>
#include <d3d9.h>
#include <d3dx9.h>
#include "Atoms.h"

class DX
{
public:
	~DX( );

	HRESULT					init( HWND hWnd, bool windowed = true );
	
	LPDIRECT3D9				direct3D;
	LPDIRECT3DDEVICE9		device;
	HWND					_hWnd;
	D3DPRESENT_PARAMETERS	d3dpp;
	D3DDISPLAYMODE			d3ddm;
	IDirect3DSurface9*		backBuffer;
	unsigned				monitor;
	static DX*				_();
private:
	static DX*				inst;
	DX( );
};

#endif